.class public Lorg/zeam/ApplicationsPagingView;
.super Landroid/widget/FrameLayout;
.source "ApplicationsPagingView.java"

# interfaces
.implements Lorg/zeam/ApplicationsView;
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnLongClickListener;
.implements Lorg/zeam/DragSource;


# static fields
.field private static sColumns:I

.field private static sRows:I


# instance fields
.field private mApplicationItemInfos:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lorg/zeam/ApplicationItemInfo;",
            ">;"
        }
    .end annotation
.end field

.field private mDragController:Lorg/zeam/DragController;

.field private mLauncher:Lorg/zeam/Launcher;

.field public mMode:I

.field private mPagingView:Lorg/zeam/PagingView;

.field private mResetMode:Z

.field private mScreenIndicator:Lorg/zeam/ScreenIndicator;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 42
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 31
    const/4 v0, 0x0

    iput v0, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    .line 43
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 38
    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 31
    const/4 v0, 0x0

    iput v0, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    .line 39
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    .line 34
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 31
    const/4 v0, 0x0

    iput v0, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    .line 35
    return-void
.end method

.method static synthetic access$0(Lorg/zeam/ApplicationsPagingView;)V
    .locals 0
    .parameter

    .prologue
    .line 271
    invoke-direct {p0}, Lorg/zeam/ApplicationsPagingView;->indicate()V

    return-void
.end method

.method private buildPages()V
    .locals 14

    .prologue
    const/4 v4, 0x1

    .line 87
    iget-object v7, p0, Lorg/zeam/ApplicationsPagingView;->mApplicationItemInfos:Ljava/util/ArrayList;

    .line 88
    .local v7, applicationItemInfos:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/ApplicationItemInfo;>;"
    if-nez v7, :cond_0

    .line 111
    :goto_0
    return-void

    .line 91
    :cond_0
    invoke-virtual {p0}, Lorg/zeam/ApplicationsPagingView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v8

    .line 93
    .local v8, layoutInflater:Landroid/view/LayoutInflater;
    sget v2, Lorg/zeam/ApplicationsPagingView;->sRows:I

    sget v3, Lorg/zeam/ApplicationsPagingView;->sColumns:I

    invoke-static {v2, v3, v7}, Lorg/zeam/ApplicationsPagingView;->loadPageContents(IILjava/util/ArrayList;)Ljava/util/LinkedHashMap;

    move-result-object v10

    .line 95
    .local v10, pageContents:Ljava/util/LinkedHashMap;,"Ljava/util/LinkedHashMap<Ljava/lang/Integer;Ljava/util/List<Lorg/zeam/ApplicationItemInfo;>;>;"
    iget v2, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    if-ne v2, v4, :cond_1

    move v1, v4

    .line 97
    .local v1, uninstalling:Z
    :goto_1
    new-instance v12, Ljava/util/ArrayList;

    invoke-direct {v12}, Ljava/util/ArrayList;-><init>()V

    .line 98
    .local v12, pageViews:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/view/View;>;"
    invoke-virtual {v10}, Ljava/util/LinkedHashMap;->keySet()Ljava/util/Set;

    move-result-object v11

    .line 99
    .local v11, pageIndexes:Ljava/util/Set;,"Ljava/util/Set<Ljava/lang/Integer;>;"
    invoke-interface {v11}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v13

    :goto_2
    invoke-interface {v13}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-nez v2, :cond_2

    .line 108
    iget-object v2, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    invoke-virtual {v2}, Lorg/zeam/PagingView;->clearPagingViews()V

    .line 109
    iget-object v2, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    invoke-virtual {v2, v12}, Lorg/zeam/PagingView;->setPagingViews(Ljava/util/ArrayList;)V

    .line 110
    invoke-static {}, Ljava/lang/System;->gc()V

    goto :goto_0

    .line 95
    .end local v1           #uninstalling:Z
    .end local v11           #pageIndexes:Ljava/util/Set;,"Ljava/util/Set<Ljava/lang/Integer;>;"
    .end local v12           #pageViews:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/view/View;>;"
    :cond_1
    const/4 v2, 0x0

    move v1, v2

    goto :goto_1

    .line 99
    .restart local v1       #uninstalling:Z
    .restart local v11       #pageIndexes:Ljava/util/Set;,"Ljava/util/Set<Ljava/lang/Integer;>;"
    .restart local v12       #pageViews:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/view/View;>;"
    :cond_2
    invoke-interface {v13}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v9

    .line 102
    .local v9, page:I
    const v2, 0x7f030005

    const/4 v3, 0x0

    invoke-virtual {v8, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lorg/zeam/ApplicationsPageView;

    .line 104
    .local v0, applicationsPageView:Lorg/zeam/ApplicationsPageView;
    sget v2, Lorg/zeam/ApplicationsPagingView;->sRows:I

    sget v3, Lorg/zeam/ApplicationsPagingView;->sColumns:I

    invoke-static {v9}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v10, v4}, Ljava/util/LinkedHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/List;

    move-object v5, p0

    move-object v6, p0

    invoke-virtual/range {v0 .. v6}, Lorg/zeam/ApplicationsPageView;->populatePage(ZIILjava/util/List;Landroid/view/View$OnLongClickListener;Landroid/view/View$OnClickListener;)V

    .line 105
    invoke-virtual {v12, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_2
.end method

.method private indicate()V
    .locals 4

    .prologue
    .line 273
    iget-object v0, p0, Lorg/zeam/ApplicationsPagingView;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    invoke-virtual {v1}, Lorg/zeam/PagingView;->getScrollX()I

    move-result v1

    int-to-float v1, v1

    .line 274
    iget-object v2, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    invoke-virtual {v2}, Lorg/zeam/PagingView;->getPageCount()I

    move-result v2

    invoke-virtual {p0}, Lorg/zeam/ApplicationsPagingView;->getWidth()I

    move-result v3

    mul-int/2addr v2, v3

    int-to-float v2, v2

    div-float/2addr v1, v2

    .line 273
    invoke-virtual {v0, v1}, Lorg/zeam/ScreenIndicator;->indicate(F)V

    .line 275
    return-void
.end method

.method private initIndicator()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 153
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    if-nez v1, :cond_0

    .line 167
    :goto_0
    return-void

    .line 156
    :cond_0
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    iget-object v2, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    invoke-virtual {v2}, Lorg/zeam/PagingView;->getPageCount()I

    move-result v2

    invoke-virtual {v1, v2}, Lorg/zeam/ScreenIndicator;->setItems(I)V

    .line 157
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lorg/zeam/ScreenIndicator;->setType(I)V

    .line 158
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    invoke-virtual {v1, v3}, Lorg/zeam/ScreenIndicator;->setAutoHide(Z)V

    .line 160
    invoke-virtual {p0}, Lorg/zeam/ApplicationsPagingView;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 161
    .local v0, context:Landroid/content/Context;
    invoke-static {v0}, Lorg/zeam/PreferencesUtil;->rememberApplicationsPosition(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 162
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    iget-object v2, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    invoke-virtual {v2}, Lorg/zeam/PagingView;->getCurrentPageIndex()I

    move-result v2

    invoke-virtual {v1, v2}, Lorg/zeam/ScreenIndicator;->fullIndicate(I)V

    goto :goto_0

    .line 164
    :cond_1
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    invoke-virtual {v1, v3}, Lorg/zeam/ScreenIndicator;->fullIndicate(I)V

    .line 165
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    invoke-virtual {v1}, Lorg/zeam/PagingView;->resetScroll()V

    goto :goto_0
.end method

.method private static loadPageContents(IILjava/util/ArrayList;)Ljava/util/LinkedHashMap;
    .locals 5
    .parameter "rows"
    .parameter "columns"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(II",
            "Ljava/util/ArrayList",
            "<",
            "Lorg/zeam/ApplicationItemInfo;",
            ">;)",
            "Ljava/util/LinkedHashMap",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/util/List",
            "<",
            "Lorg/zeam/ApplicationItemInfo;",
            ">;>;"
        }
    .end annotation

    .prologue
    .line 117
    .local p2, applicationItemInfos:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/ApplicationItemInfo;>;"
    new-instance v2, Ljava/util/LinkedHashMap;

    invoke-direct {v2}, Ljava/util/LinkedHashMap;-><init>()V

    .line 119
    .local v2, pageContents:Ljava/util/LinkedHashMap;,"Ljava/util/LinkedHashMap<Ljava/lang/Integer;Ljava/util/List<Lorg/zeam/ApplicationItemInfo;>;>;"
    mul-int v0, p0, p1

    .line 120
    .local v0, itemsPerPage:I
    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result p0

    .end local p0
    add-int/lit8 p0, p0, 0x1

    .line 121
    .local p0, itemsCount:I
    int-to-double p0, p0

    int-to-double v3, v0

    div-double/2addr p0, v3

    .line 123
    .end local p1
    .local p0, pageCountDouble:D
    invoke-static {p0, p1}, Ljava/lang/Math;->round(D)J

    move-result-wide v3

    long-to-double v3, v3

    cmpl-double v1, p0, v3

    if-eqz v1, :cond_0

    .line 124
    invoke-static {p0, p1}, Ljava/lang/Math;->floor(D)D

    move-result-wide p0

    .end local p0           #pageCountDouble:D
    const-wide/high16 v3, 0x3ff0

    add-double/2addr p0, v3

    .line 127
    .restart local p0       #pageCountDouble:D
    :cond_0
    double-to-int v3, p0

    .line 128
    .local v3, pageCount:I
    const/4 p0, 0x0

    .local p0, p:I
    move v1, p0

    .end local p0           #p:I
    .local v1, p:I
    :goto_0
    if-lt v1, v3, :cond_1

    .line 142
    return-object v2

    .line 130
    :cond_1
    mul-int v4, v0, v1

    .line 131
    .local v4, start:I
    add-int p1, v4, v0

    .line 133
    .local p1, end:I
    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result p0

    .line 134
    .local p0, applicationCount:I
    if-lt p1, p0, :cond_3

    .line 135
    move p0, p0

    .line 137
    .end local p1           #end:I
    .local p0, end:I
    :goto_1
    invoke-virtual {p2, v4, p0}, Ljava/util/ArrayList;->subList(II)Ljava/util/List;

    move-result-object p0

    .line 138
    .local p0, pageList:Ljava/util/List;,"Ljava/util/List<Lorg/zeam/ApplicationItemInfo;>;"
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_2

    .line 139
    add-int/lit8 p1, v1, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v2, p1, p0}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 128
    :cond_2
    add-int/lit8 p0, v1, 0x1

    .end local v1           #p:I
    .local p0, p:I
    move v1, p0

    .end local p0           #p:I
    .restart local v1       #p:I
    goto :goto_0

    .local p0, applicationCount:I
    .restart local p1       #end:I
    :cond_3
    move p0, p1

    .end local p1           #end:I
    .local p0, end:I
    goto :goto_1
.end method


# virtual methods
.method public close(Z)Z
    .locals 4
    .parameter "animated"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 185
    iget v1, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    if-eqz v1, :cond_1

    .line 186
    iget-boolean v1, p0, Lorg/zeam/ApplicationsPagingView;->mResetMode:Z

    if-eqz v1, :cond_0

    .line 187
    invoke-virtual {p0, v2}, Lorg/zeam/ApplicationsPagingView;->setMode(I)V

    .line 189
    :cond_0
    iput-boolean v3, p0, Lorg/zeam/ApplicationsPagingView;->mResetMode:Z

    move v1, v2

    .line 197
    :goto_0
    return v1

    .line 192
    :cond_1
    if-eqz p1, :cond_2

    .line 193
    invoke-virtual {p0}, Lorg/zeam/ApplicationsPagingView;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 194
    .local v0, context:Landroid/content/Context;
    const v1, 0x7f040001

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {p0, v1}, Lorg/zeam/ApplicationsPagingView;->setAnimation(Landroid/view/animation/Animation;)V

    .line 196
    .end local v0           #context:Landroid/content/Context;
    :cond_2
    const/4 v1, 0x4

    invoke-virtual {p0, v1}, Lorg/zeam/ApplicationsPagingView;->setVisibility(I)V

    move v1, v3

    .line 197
    goto :goto_0
.end method

.method public getImplementingView()Landroid/view/View;
    .locals 0

    .prologue
    .line 212
    return-object p0
.end method

.method public getLauncher()Lorg/zeam/Launcher;
    .locals 1

    .prologue
    .line 228
    iget-object v0, p0, Lorg/zeam/ApplicationsPagingView;->mLauncher:Lorg/zeam/Launcher;

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "view"

    .prologue
    .line 253
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/zeam/ApplicationItemInfo;

    .line 255
    .local v0, applicationItemInfo:Lorg/zeam/ApplicationItemInfo;
    iget v1, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    packed-switch v1, :pswitch_data_0

    .line 269
    :cond_0
    :goto_0
    return-void

    .line 257
    :pswitch_0
    const/4 v1, 0x1

    iput-boolean v1, p0, Lorg/zeam/ApplicationsPagingView;->mResetMode:Z

    .line 258
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mLauncher:Lorg/zeam/Launcher;

    iget-object v2, v0, Lorg/zeam/ApplicationItemInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v1, v2}, Lorg/zeam/Launcher;->startActivitySafely(Landroid/content/Intent;)V

    goto :goto_0

    .line 261
    :pswitch_1
    invoke-virtual {p0}, Lorg/zeam/ApplicationsPagingView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v0}, Lorg/zeam/Utilities;->canUninstallApplication(Landroid/content/Context;Lorg/zeam/ApplicationItemInfo;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 262
    const/4 v1, 0x0

    iput-boolean v1, p0, Lorg/zeam/ApplicationsPagingView;->mResetMode:Z

    .line 263
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mLauncher:Lorg/zeam/Launcher;

    invoke-virtual {v1, v0}, Lorg/zeam/Launcher;->uninstallApplication(Lorg/zeam/ApplicationItemInfo;)V

    goto :goto_0

    .line 255
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onDestroy()V
    .locals 1

    .prologue
    .line 148
    const/4 v0, 0x0

    iput-object v0, p0, Lorg/zeam/ApplicationsPagingView;->mApplicationItemInfos:Ljava/util/ArrayList;

    .line 149
    return-void
.end method

.method public onDropCompleted(Landroid/view/View;Z)V
    .locals 0
    .parameter "target"
    .parameter "success"

    .prologue
    .line 233
    return-void
.end method

.method protected onFinishInflate()V
    .locals 2

    .prologue
    .line 47
    invoke-super {p0}, Landroid/widget/FrameLayout;->onFinishInflate()V

    .line 49
    const/4 v0, 0x1

    iput-boolean v0, p0, Lorg/zeam/ApplicationsPagingView;->mResetMode:Z

    .line 50
    const v0, 0x7f060007

    invoke-virtual {p0, v0}, Lorg/zeam/ApplicationsPagingView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lorg/zeam/PagingView;

    iput-object v0, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    .line 51
    iget-object v0, p0, Lorg/zeam/ApplicationsPagingView;->mPagingView:Lorg/zeam/PagingView;

    new-instance v1, Lorg/zeam/ApplicationsPagingView$1;

    invoke-direct {v1, p0}, Lorg/zeam/ApplicationsPagingView$1;-><init>(Lorg/zeam/ApplicationsPagingView;)V

    invoke-virtual {v0, v1}, Lorg/zeam/PagingView;->setOnPageScrollListener(Lorg/zeam/PagingView$OnPageScrollListener;)V

    .line 57
    const v0, 0x7f060008

    invoke-virtual {p0, v0}, Lorg/zeam/ApplicationsPagingView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lorg/zeam/ScreenIndicator;

    iput-object v0, p0, Lorg/zeam/ApplicationsPagingView;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    .line 58
    return-void
.end method

.method public onLongClick(Landroid/view/View;)Z
    .locals 4
    .parameter "view"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 238
    iget v1, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    if-nez v1, :cond_1

    .line 239
    invoke-virtual {p1}, Landroid/view/View;->isInTouchMode()Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v2

    .line 247
    :goto_0
    return v1

    .line 242
    :cond_0
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/zeam/ApplicationItemInfo;

    .line 243
    .local v0, applicationItemInfo:Lorg/zeam/ApplicationItemInfo;
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mDragController:Lorg/zeam/DragController;

    invoke-interface {v1, p1, p0, v0, v3}, Lorg/zeam/DragController;->startDrag(Landroid/view/View;Lorg/zeam/DragSource;Ljava/lang/Object;I)V

    .line 244
    iget-object v1, p0, Lorg/zeam/ApplicationsPagingView;->mLauncher:Lorg/zeam/Launcher;

    invoke-virtual {v1}, Lorg/zeam/Launcher;->closeAllApplications()V

    move v1, v3

    .line 245
    goto :goto_0

    .end local v0           #applicationItemInfo:Lorg/zeam/ApplicationItemInfo;
    :cond_1
    move v1, v2

    .line 247
    goto :goto_0
.end method

.method public open(Z)V
    .locals 2
    .parameter "animated"

    .prologue
    .line 172
    invoke-direct {p0}, Lorg/zeam/ApplicationsPagingView;->buildPages()V

    .line 173
    invoke-direct {p0}, Lorg/zeam/ApplicationsPagingView;->initIndicator()V

    .line 175
    if-eqz p1, :cond_0

    .line 176
    invoke-virtual {p0}, Lorg/zeam/ApplicationsPagingView;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 177
    .local v0, context:Landroid/content/Context;
    const/high16 v1, 0x7f04

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {p0, v1}, Lorg/zeam/ApplicationsPagingView;->setAnimation(Landroid/view/animation/Animation;)V

    .line 179
    .end local v0           #context:Landroid/content/Context;
    :cond_0
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lorg/zeam/ApplicationsPagingView;->setVisibility(I)V

    .line 180
    return-void
.end method

.method public setApplications(Ljava/util/ArrayList;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lorg/zeam/ApplicationItemInfo;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 79
    .local p1, applicationItemInfos:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/ApplicationItemInfo;>;"
    iput-object p1, p0, Lorg/zeam/ApplicationsPagingView;->mApplicationItemInfos:Ljava/util/ArrayList;

    .line 81
    invoke-direct {p0}, Lorg/zeam/ApplicationsPagingView;->buildPages()V

    .line 82
    invoke-direct {p0}, Lorg/zeam/ApplicationsPagingView;->initIndicator()V

    .line 83
    return-void
.end method

.method public setBackgroundAlpha(I)V
    .locals 1
    .parameter "alpha"

    .prologue
    const/4 v0, 0x0

    .line 72
    invoke-static {p1, v0, v0, v0}, Landroid/graphics/Color;->argb(IIII)I

    move-result v0

    invoke-virtual {p0, v0}, Lorg/zeam/ApplicationsPagingView;->setBackgroundColor(I)V

    .line 73
    invoke-virtual {p0}, Lorg/zeam/ApplicationsPagingView;->invalidate()V

    .line 74
    return-void
.end method

.method public setDragController(Lorg/zeam/DragController;)V
    .locals 0
    .parameter "dragController"

    .prologue
    .line 202
    iput-object p1, p0, Lorg/zeam/ApplicationsPagingView;->mDragController:Lorg/zeam/DragController;

    .line 203
    return-void
.end method

.method public setLauncher(Lorg/zeam/Launcher;)V
    .locals 0
    .parameter "launcher"

    .prologue
    .line 207
    iput-object p1, p0, Lorg/zeam/ApplicationsPagingView;->mLauncher:Lorg/zeam/Launcher;

    .line 208
    return-void
.end method

.method public setMode(I)V
    .locals 1
    .parameter "mode"

    .prologue
    .line 218
    iget v0, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    if-ne v0, p1, :cond_0

    .line 219
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lorg/zeam/ApplicationsPagingView;->setMode(I)V

    .line 224
    :goto_0
    return-void

    .line 222
    :cond_0
    iput p1, p0, Lorg/zeam/ApplicationsPagingView;->mMode:I

    .line 223
    invoke-direct {p0}, Lorg/zeam/ApplicationsPagingView;->buildPages()V

    goto :goto_0
.end method

.method public setNumColumns(I)V
    .locals 0
    .parameter "columns"

    .prologue
    .line 62
    sput p1, Lorg/zeam/ApplicationsPagingView;->sColumns:I

    .line 63
    return-void
.end method

.method public setNumRows(I)V
    .locals 0
    .parameter "rows"

    .prologue
    .line 66
    sput p1, Lorg/zeam/ApplicationsPagingView;->sRows:I

    .line 67
    return-void
.end method
